翻訳と辞書
Words near each other
・ Documentary theatre
・ Documentation
・ Doctors' Private Lives
・ Doctors' trial
・ Doctors' Wives
・ Doctors' Wives (1931 film)
・ Doctors' Wives (1971 film)
・ Doctors, Professors, Kings & Queens
・ Doctors.net.uk
・ Doctor–patient relationship
・ Doctrina Christiana
・ Doctrinaires
・ Doctrinal background of Zen
・ Doctrine
・ Doctrine (album)
Doctrine (PHP)
・ Doctrine and Covenants
・ Doctrine and Discipline of Divorce
・ Doctrine and Life
・ Doctrine Commission (Church of England)
・ Doctrine for Joint Nuclear Operations
・ Doctrine of Addai
・ Doctrine of bias in Singapore law
・ Doctrine of capacities
・ Doctrine of cash equivalence
・ Doctrine of chances
・ Doctrine of colourability
・ Doctrine of concurrent delay
・ Doctrine of Election
・ Doctrine of equivalents


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Doctrine (PHP) : ウィキペディア英語版
Doctrine (PHP)

The Doctrine Project (or Doctrine) is a set of PHP libraries primarily focused on providing persistence services and related functionality. Its prize projects are an object-relational mapper (ORM) and the database abstraction layer it is built on top of.
One of Doctrine's key features is the option to write database queries in a proprietary object oriented SQL dialect called Doctrine Query Language (DQL).
==Usage demonstration==
Entities in Doctrine 2 are lightweight PHP Objects that contain persistable properties. A persistable property is an instance variable of the entity that is saved into and retrieved from the database by Doctrine’s data mapping capabilities via the Entity Manager - an implementation of the data mapper pattern:

$user = new User();
$user->name = "john1";
$user->password = "doe";
$entityManager->persist($user);
$entityManager->flush();
echo "The user with id $user->id has been saved.";

Doctrine 1.x follows the active record pattern for working with data, where a class corresponds with a database table. For instance, if a programmer wanted to create a new "User" object in a database, he/she would no longer need to write SQL queries, but instead could use the following PHP code:

$user = new User();
$user->name = "john";
$user->password = "doe";
$user->save();
echo "The user with id $user->id has been saved.";


抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Doctrine (PHP)」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.